<div class="navbar">
    <div class="navbar-inner">
    	<div class="container">
		    <a class="brand" href="/">
		    	<?php echo $this->Html->image('omicron-logo.png', array('alt' => 'Omicron', 'class' => 'omicronLogo')); ?>
		    </a>
		    <ul class="nav">
		    	<?php if ($loggedInUser): ?>
			    	<li class="<?php echo (strcasecmp($this->params->params['controller'], 'surveys') == 0 and @$this->params->params['action'] == 'index') ? 'active' : ''; ?>">
			    		<?php echo $this->Html->link('My Surveys', array('controller' => 'Surveys', 'action' => 'index')); ?>
			    	</li>
				<?php endif; ?>
		    
		    	<li class="<?php echo (strcasecmp($this->params->params['controller'], 'pages') == 0 and @$this->params->params['pass'][0] == 'about_us') ? 'active' : ''; ?>">
		    		<?php echo $this->Html->link('About Us', array('controller' => 'pages', 'action' => 'display', 'about_us')); ?>
		    	</li>
		    </ul>
		    <ul class="nav pull-right">
			    <?php if ($loggedInUser): ?>
	    			<li class="dropdown">
		    			<a class="dropdown-toggle" id="dLabel" role="button" data-toggle="dropdown" href="#">
							<strong><?php echo $loggedInUser['full_name']; ?></strong>
							<b class="caret"></b>
		    			</a>
		    			<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
							<li>
								<?php echo $this->Html->link('Log Out', array('controller' => 'users', 'action' => 'logout')); ?>
							</li>
						</ul>
					</li>
				<?php else: ?>
					<li>
						<?php echo $this->Html->link('Register / Log In', array('controller' => 'users', 'action' => 'login')); ?>
					</li>
				<?php endif; ?>
		    </ul>
		</div>
    </div>
</div>